package com.spt.springbootzhsx.controller;

import com.spt.springbootzhsx.entity.Rate;
import com.spt.springbootzhsx.service.RateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value="/rate")
public class RateController {
    @Autowired
    private RateService rateService;

    @PostMapping(value="/addRate")
    public String addRate(@RequestBody Rate rate){
        return rateService.addRate(rate);
    }
}
